home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13426 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: This should really be a simple question for you C-freaks...
  5. Date: 5 Apr 1996 23:58:42 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4k516i$3f4@solutions.solon.com>
  8. References: <4jrue1$gsu@nyheter.chalmers.se> <4k0vd0$roo@news1.intercall.com> <4k3ueh$a76@news1.intercall.com>
  9. Reply-To: seebs@solon.com
  10. NNTP-Posting-Host: solutions.solon.com
  11.  
  12. In article <4k3ueh$a76@news1.intercall.com>,
  13. Steven Ovits <engevar@intercall.com> wrote:
  14. >engevar@intercall.com (Steven Ovits) wrote:
  15.  
  16. >>Even on the PC, getch() will only read the characters from
  17. >>the keyboard after the Enter key is pressed. 
  18.  
  19. >This was incorrect.  getch() WILL read the key directly.
  20. >I apologize for any inconveniences I may have caused.
  21.  
  22. Actually, that's incorrect too.
  23.  
  24. getch() is not a C function.  I have an implementation where it just does
  25. the same thing getchar() does, I have one where it can be caused to read
  26. keys directly, and one where it never reads keys directly.  Sort of a
  27. collection, almost.
  28.  
  29. In practice, the way you would read keys without waiting for an enter is
  30. that you ask in a newsgroup related to the implementation you've chosen.
  31.  
  32. -s
  33. -- 
  34. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  35. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  36. FUCK the communications decency act.  Goddamned government.  [literally.]
  37. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  38.